﻿@model IEnumerable<BB.Apostas.Models.Jornada>
@if (Model != null)
{
    <h4>Competicao Activa: <strong>@ViewBag.Active</strong></h4>    
    <br />
    <ul data-role="listview" data-filter="true">
        @{
    foreach (var item in Model)
    {
            <li>
                <a href="@Url.Action("Edit", new { id = item.Id })">
                    <h3>@item.Name</h3>
                    <p>
                        <strong>
                            @if (item.Fulfilled)
                            {
                                @: Ver
                        }
                            else
                            {
                                @: Apostar
                        }
                        </strong>
                    </p>
                </a>
            </li>
    }
        }
    </ul>
}
else
{
    <h3>Nao ha competicoes activas.
    </h3>
}
